package com.onepiece.gen.admin.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Administrator
 * Date 2022/12/6 16:08
 * Version 1.0
 * Description TODO
 **/
@Configuration
public class OpenApiConfig {
    @Bean
    public OpenAPI openAPI(){
        return new OpenAPI().info(
                new Info().title("Test")
                        .description("Open API")
                        .version("1.0")
        );
    }
}
